class PagingParams {
  int current = 1;
  int size = 10;

  PagingParams();

  factory PagingParams.create(
      {required int pageIndex, int pageSize = 10}) {
    var request = PagingParams();
    request.current = pageIndex;
    request.size = pageSize;
    return request;
  }
}
